package com.bw.mvvm_common.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

import com.bw.mvvm_common.BaseApplication;

public class ISConnectUtils {

    public static boolean isConnect(){
        ConnectivityManager manager = (ConnectivityManager) BaseApplication.getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo info = manager.getActiveNetworkInfo();
        if (info == null)
            return false;
        return info.isConnected();
    }

}
